package com.mallcai.bigdata.ladon.service.peekdata;

import com.mallcai.bigdata.ladon.dpl.entity.peekdata.PeekField;
import com.mallcai.bigdata.ladon.dpl.entity.peekdata.PeekRule;
import com.mallcai.bigdata.ladon.vo.DataVo;

import java.util.List;

/**
 * @author feixy
 * @version 1.0
 * @date 2019-07-03 10:13
 */
public interface IPeekQueryService {

    /**
     * 预览数据
     *
     * @param modelId Long 模型Id
     * @param fieldList  返回字段集
     * @param ruleList   List 规则列表
     * @return DataVo
     */
    DataVo previewData(Long modelId, List<PeekField> fieldList, List<PeekRule> ruleList);

    /**
     * 统计数据
     * @param modelId
     * @param fieldList
     * @param rules
     * @return
     */
    Long countDataSize(Long modelId, List<PeekField> fieldList, List<PeekRule> rules);

    /**
     * 发送数据到当前登录用户的邮箱
     * @param peekId
     * @return
     */
    int sendData2Me(Long peekId);
}
